home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / ACCOUTIL / LTSTIPS3.LZH / LOTUSINV < prev    next >
Text File  |  1985-11-28  |  7KB  |  116 lines

  1.                       A 1-2-3 Macro for Investors 
  2.           (PC Magazine Vol 3 No 20 Oct 16, 1984 by G. Hayles)
  3.  
  4.      This article explains how to create and use an internal rate of
  5. return (IRR) macro, or subroutine, that is easily incorporated into
  6. any 123 model.  The file LOTUSINV contains the IRR macro and describes
  7. what each line of the macro does.  The letter A (for Analysis) is
  8. assigned to the macro and it is invoked with the Alt-A key combination.
  9. The macro is stored in cells A2001 through A2011 and the descriptions
  10. in cells B2001 through B2011.
  11.      You must use certain conventions for telling 123 how to move the
  12. cursor.  For instance, including the command {GOTO} in a macro has the
  13. same effect as striking the F5 function key, and using the command {UP}
  14. {UP} moves the cursor two rows up.  (Refer to page 109 in the 123 user
  15. manual for more details on the conventions used for cursor movement and
  16. other macro-invoked commands.)
  17.      Once the keystrokes are loaded, a macro range name consisting of a
  18. reverse slash and a single letter of the alphabet is assigned to the
  19. cell at which you start the macro.  You can then invoke the macro any
  20. time you need it by pressing the letter of the alphabet assigned to the
  21. macro while holding down the Alt key.
  22.      You can put this feature to many practical uses.  For example,
  23. suppose you are evaluating the pros and cons of investing in two tax
  24. shelters.  Each investment requires a down payment and cash "inflows"
  25. and "outflows" -- additional payments and returns -- of varying amounts
  26. and at various times. With inflation, a dollar today is worth more than
  27. a dollar tomorrow, so you will compute the internal rate of return of
  28. each investment to take this "time value of money" into consideration
  29. when you compare the relative worth of each investment.  Your decision
  30. to accept or reject each investment will be based on a minimum
  31. requirement of 15 percent return on investment.
  32.      Investment A requires a down payment of $200.  It also requires
  33. you to put in $30 and $20 at the end of the first and second years,
  34. respectively.  You receive cash from the investment in years 3 through
  35. 10, $100 in year 3, $50 in years 4 and 5, $70 in year 6, $90 in year 7,
  36. $100 in year 8, $60 in year 9, and $30 in year 10.
  37.      Investment B requires a down payment of $100.  Cash must also be
  38. paid in at the end of years 1 through 3 in the amounts of $10, $30, and
  39. $10, respectively.  You receive a grand total of $20 cash from this
  40. investment in all 10 years of the investment's life. A table reflecting
  41. the investments individually and collectively is also contained in the
  42. file LOTUSINV.
  43.      You can easily evaluate the investment by using the IRR macro.
  44. You enter the down payment and cash inflows and outflows for each
  45. investment and for the two investments combined, and the reports
  46. illustrating the return on investment for Investment A, Investment B,
  47. and Investment A and B together are generated.  To produce these
  48. reports, first you retrieve the IRR subroutine with the macro and
  49. description loaded in the area beginning with cell A2001.  Use rows 1
  50. through 99 as a "worksheet" area to create output from the macro and
  51. then use 123's MOVE command to move the results created in this
  52. worksheet to other parts of the spreadsheet.  After the results are
  53. moved, assign a name to them using the RANGE NAME command.  You use
  54. this name for printing the results of the analysis when called for.
  55.      Next, create cells for the investment cash inflows and outflows in
  56. some part of the spreadsheet other than the worksheet area.  Note the
  57. amount of the down payment for each investment and the location of the
  58. rows containing cash inflows and outflows for each investment.
  59.      Finally, as you evaluate each investment using the IRR macro enter
  60. this down payment and row location information.  The results of each
  61. investment will be output in the worksheet area.  As 123 produces the
  62. report for each investment alternative, move and name the report.  The
  63. internal rate of return report can then be printed using the range name
  64. assigned to it.
  65.      As the results show, you would reject Investment B and accept
  66. Investment A using the 15 percent return on investment criterion.
  67. The third return on investment analysis shows that you can analyze any
  68. number of combined investments using the IRR macro. You do it by giving
  69. the combined cash inflows and outflows as input to the macro instead of
  70. individual cash flows for each investment.  This IRR macro can be used
  71. repeatedly for any 123 spreadsheet that requires an internal reate of
  72. return calculation.  The only information you need is the amount of the
  73. down payment, if any, and the starting location of the rows for cash
  74. outflows and cash inflows.
  75.  
  76. -----------------------------------------------------------------
  77.                   Maintaining a Securities List
  78.     (PC Magazine Vol 4 No 26 Dec 24, 1985 Spreadsheet Clinic)
  79.  
  80.      We use 123 to keep track of investments, and often need to print
  81. a list of only those which have yet to mature.  We use one row of a
  82. spreadsheet per investment, with maturity dates shown in column A.
  83. This macro sends the cursor to the beginning of the maturity date
  84. column and then tests each date to see whether it was earlier than a
  85. certain date, in this case, today's date.  The macro will then delete
  86. every investment that matured before today.  When it reaches a maturity
  87. date of today or later, it prints a report of predefined dimensions
  88. called RANGE.
  89.  
  90. \X       {goto}A5~              Goto date column
  91. TEST     /xiA5<@today~/xgDEL~   Test date, goto DEL
  92.          /pprRANGE~gq           Print RANGE
  93. DEL      /wdr~/xgTEST~          Delete row, goto TEST
  94.  
  95.      Editor's Note:  Two things are troublesome with this macro.  The
  96. first is that it stops working as soon as it runs into a maturity date
  97. that is today or later.  This means that all your securities have to be
  98. in proper date order.  In case your securities get rearranged, or if
  99. you'd rather order then in some other way, this macro looks through the
  100. entire column of dates and deletes only those investments that have
  101. already matured.  This way the dates don't have to be in order.
  102.  
  103. \Y       {goto}A5~                      Goto date column
  104. START    /rncCURCELL~{bs}~              Name current cell CURCELL
  105.          /xiCURCELL=0~/xq               Quit if CURCELL is blank
  106.          /xiCURCELL<@today~/xgDELETE~   Test CURCELL, goto DELETE
  107.          {down}/xgSTART~                Down one row, goto START
  108. DELETE   /wdr~/xgSTART~                 Delete row, goto START
  109.  
  110. The other things concerns the print range.  If you are deleting an
  111. unknown number of rows from the worksheet, how do you know what your
  112. final print range is?  You might want to include a print macro that
  113. would figure out how large your spreadsheet is before printing it.
  114. Such a routine was included in the Spreadsheet Column Vol 4 No 17
  115. August 20, 1985 "Printing a Worksheet of Unknown Size."
  116.